package com.cci.kangdao.dao;


import com.cci.kangdao.cipFleet.entity.ExternalCustomerESNT;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ExternalCustomerESNTMapper {
    int deleteByPrimaryKey(Long ID);

    int insert(ExternalCustomerESNT record);

    int insertSelective(ExternalCustomerESNT record);

    ExternalCustomerESNT selectByPrimaryKey(Long ID);

    int updateByPrimaryKeySelective(ExternalCustomerESNT record);

    int updateByPrimaryKey(ExternalCustomerESNT record);

    List<ExternalCustomerESNT> selectByUserId(@Param("userId") String userId, @Param("type") Integer type);

    List<ExternalCustomerESNT> selectByUserIdListAndType(@Param("collection") Set<Integer> collect, @Param("type") Integer type);

    int deleteByUserIdList(@Param("collection") Set<Integer> collect, @Param("type") Integer type, @Param("time") String time);

    int insertList(List<ExternalCustomerESNT> list);
}